
package co.edu.unal.satacredito.database.entity;

import com.google.code.morphia.annotations.Id;
import com.google.code.morphia.annotations.Reference;
import java.util.Date;
import org.bson.types.ObjectId;

/**
 *
 * @author Miguel Alexander Diaz
 * 257835
 */
public class ChangeLogEst {
    @Id
    private ObjectId id;
    private Date date;
    @Reference
    private Administrator administrator;
    private Establishment initialStatus;
    private Establishment finalStatus;

    public ChangeLogEst(){
    }
    
    public ChangeLogEst(String id) {
        this.id = new ObjectId(id);
    }
    
    public Administrator getAdministrator() {
        return administrator;
    }

    public void setAdministrator(Administrator administrator) {
        this.administrator = administrator;
    }
    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Establishment getFinalStatus() {
        return finalStatus;
    }

    public void setFinalStatus(Establishment finalStatus) {
        this.finalStatus = finalStatus;
    }

    public ObjectId getId() {
        return id;
    }

    public Establishment getInitialStatusEst() {
        return initialStatus;
    }

    public void setInitialStatusEst(Establishment initialStatusEst) {
        this.initialStatus = initialStatusEst;
    }
    
}
